package org.game.log;

import com.sojoys.artifact.tools.SK_Plus;
import org.game.log.builder.LogDsp;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author : DengYing
 * @CreateDate : 2017年12月18日 上午10:25:48
 * @Description ：Please describe this document
 */
public class LogBuilding implements IGameLogger {

    private LogBuilding() {
    }

    private static LogBuilding ME = new LogBuilding();

    public static LogBuilding me() {
        return ME;
    }

    private static Logger buildingLogger = LoggerFactory.getLogger("building");


    public void log(int pid, int cid,LogDsp logDsp) {
        SK_Plus sb = getPlayerInfo(pid);
        addField(sb, cid);
        addField(sb, logDsp.getDsp());
        addField(sb, logDsp.build());
        buildingLogger.info(sb.e());
    }


}
